<?php 
global $framework;
require_once("$framework/configuration.php");
/**
 * return the corresponding parameter ($group/$key) from <pre>config.ini</pre> file.
 * @param $group
 * @param $key
 * @return String containing value
 */
function __param($group,$key){
	$conf = Configuration::getInstance();
	return $conf->getParam($group,$key);
}

/**
 * Return state of a boolean parameter ($group,$key) from <pre>config.ini</pre> file.
 * @param $group
 * @param $key
 * @return boolean true or false value.
 */
function __param_is_activated($group,$key){
	$conf = Configuration::getInstance();
	return $conf->isActive($group,$key);
}

/**
 * Return an array containing a $group of parameters from <pre>config.ini</pre> file.
 * @param $group
 * @return array of parameters (strings values)
 */
function __grp_param($group){
	$conf = Configuration::getInstance();
	return $conf->getParam($group,"");
}
?>